package Day07_22;

public class HomeWork02 {
    public static void main(String[] args) {
        int[] a = {1,2,3,4,5,6};
        int[] b = new int[10];
        System.arraycopy(a,0,b,4,6);
        for (int i = 0; i < b.length; i++) {
            System.out.print(b[i]+"   ");

        }
        System.out.println();
        String[] s1 = {"qwqw","121312","2effwefc"};
        String[] s2 = new String[10];
        System.arraycopy(s1,1,s2,0,2);
        for (int i = 0; i < s2.length; i++) {
            System.out.print(s2[i]+"   ");
        }

        System.out.println();
        Object[] b1 =  {new Object(),new Object(),new Object()};
        Object[] b2 = new Object[10];
        System.arraycopy(b1,0,b2,4,3);
        for (int i = 0; i < b2.length; i++) {
            System.out.print(b2[i]+"   ");
        }



    }
}

